﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ClearLineSweet : ClearSweet {

    public bool isRow;//是否为行消除，否则为列消除
    

    public override void Clear()
    {
        base.Clear();
        if (isRow)
        {
            GameManager.Instance.ClearRow(gameSweet.Y);
        }
        else
        {
            GameManager.Instance.ClearColomn(gameSweet.X);
        }

    }
   
}
